import router from "./index";
export function createRouterGuards() {
  router.beforeEach((to, from, next) => {
    /* 路由发生变化修改页面title */
    if (to.meta.title) {
      document.title = to.meta.title as string;
    }
    next();
  });
}
